wayland: Use current serial when setting selection, not _wl_time_now()
authorKristian Høgsberg <krh@bitplanet.net>
Sat, 24 Aug 2013 06:05:33 +0000 (23:05 -0700)
committerKristian Høgsberg <krh@bitplanet.net>
Sat, 24 Aug 2013 06:15:53 +0000 (23:15 -0700)
The wl_data_device.set_selection request expects a serial number.

gdk/wayland/gdkdevice-wayland.c

index cb465d90e7ac516dcfd3ed7d3d94624ac51bbd7c..b4460c040c6e03197eff1b35661f88aa4986a880 100644 (file)
@@ -1668,7 +1668,7 @@ gdk_wayland_device_offer_selection_content (GdkDevice
 
   wl_data_device_set_selection (device->data_device,
                                 offer->source,
-                                _wl_time_now ());
+                                _gdk_wayland_display_get_serial (display_wayland));
 
   device->selection_offer_out = offer;